package com.tpindividual.tpej1;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;



public class MiControllerInput implements OnClickListener {
	
	private final MiVistaInput view;
	private final Triangulo model;
	private final ActivityInput activity;
	
    public MiControllerInput(Triangulo m, MiVistaInput v, ActivityInput a) {
    	model = m;
    	view = v;
    	activity = a;
    }
    
    public void onClick(View v) {
    	Intent intent = new Intent(activity, ActivityOutput.class);
    	double numero1 = Double.parseDouble(activity.getNumero1().getText().toString());
    	double numero2 = Double.parseDouble(activity.getNumero2().getText().toString());
    	double numero3 = Double.parseDouble(activity.getNumero3().getText().toString());

    	intent.putExtra("numero1", numero1);
		intent.putExtra("numero2", numero2);
    	intent.putExtra("numero3", numero3);
    	activity.startActivity(intent);

    	
    }
}
